// This file is part of Indico.
// Copyright (C) 2002 - 2025 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.

@use 'base' as *;

.i-spinner {
  position: relative;
  height: 1em;
  width: 1em;

  &::before,
  &::after {
    border-radius: 50%;
    @include border-all($width: 0.1em);
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
  }

  &::before {
    border-color: $dark-gray;
  }

  &::after {
    -webkit-animation: button-spin 0.5s linear;
    animation: button-spin 0.5s linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    border-color: $indico-blue transparent transparent;
  }
}
